package org.example.demo1.service;

import org.example.demo1.common.PageData;
import org.example.demo1.common.PageQuery;
import org.example.demo1.common.ResponseData;
import org.example.demo1.domain.UserInfo;

public interface IUserService {
    ResponseData<UserInfo> addUser(UserInfo userInfo);
    ResponseData<UserInfo> getUserByName(String userName);
    ResponseData<UserInfo> getUserByPhone(String phone);
    ResponseData<UserInfo> updateUser(UserInfo userInfo);
    ResponseData<PageData<UserInfo>> page(PageQuery pageQuery);

    ResponseData<UserInfo> deleteUserByName(String userName);
}
